'use strict';

angular.module('myApp.borrow', ['ngRoute'])

    .config(['$routeProvider', function($routeProvider) {
        $routeProvider.when('/', {
            templateUrl: 'borrow/borrow.html',
            controller: 'borrowCtrl'
        });
    }])

    .controller('borrowCtrl',['$scope',"lHTTP",'lPop','$http', function($scope,lHTTP,lPop,$http ) {
        //$scope.showPopTips = true;
        //lPop.popSet(1 , $scope ,"租借成功" ,undefined , "images/right-icon.png" , "aaaa",undefined , "请取走机器吐出的数据线" , undefined,30000);
        //lPop.popSimpleSet(1,$scope);
        //lPop.popSet(1,$scope,"title");
        gHttp = $http;

        $.classieOpen();
        $.opensvg();
        $.borrow(lHTTP,$scope,lPop);
        $.loginApp(lHTTP,undefined,lPop,$scope);

        //$timeout(function(){
        //    lPop.popSet(2 , $scope ,"租借成功" ,undefined , "images/right-icon.png" , undefined,undefined , "请取走机器吐出的数据线" , undefined,30000)
        //},1000);
        //
        //$timeout(function(){
        //    lPop.popSet(2 , $scope ,"租借成功" ,undefined , "images/right-icon.png" , "aaaa",undefined , "请取走机器吐出的数据线" , undefined,30000)
        //},3000);

    }]);
